﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace TRINHTUNGLAM.OOP.EX2
{
    public partial class VIEW : Form
    {
        public VIEW()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            listBox1.Items.Clear();
            CONTROLLERS obj = new CONTROLLERS();
            Entity objEntity = new Entity();
            objEntity.a = double.Parse(txtsoa.Text);
            objEntity.b = double.Parse(txtsob.Text);

            listBox1.Items.Add(obj.objController(objEntity,(short)comboBox1.SelectedIndex));
        }
    }
}
